package com.itheima.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.web.servlet.mvc.Controller;

/**
 * @program: SpringMVC入门程序
 * @description:
 * @author: xuejingjing
 * @create: 2021-08-11 22:08
 **/

/**
 * 这两个配置
 */
@Configuration //代替spring-mvc.xml
@ComponentScan(value = "com.itheima",includeFilters =
              @ComponentScan.Filter(type= FilterType.ANNOTATION,classes = {Controller.class}))
public class SpringMVCConfiguration {
}
